package com.totofgeek.contactsboard.outils.utilitaires;

public class DoubleUtilitaire
{
	/**
	 * @param a
	 * @return
	 */
	public static double sqr(Double a)
	{
		return a * a;
	}

	/**
	 * @param x1
	 * @param y1
	 * @param x2
	 * @param y2
	 * @return
	 */
	public static double distance(Double x1, Double y1, Double x2, Double y2)
	{
		return Math.sqrt(sqr(y2 - y1) + sqr(x2 - x1));
	}
}
